Ext.define('Usws.view.videoComment.VideoCommentEdit', {
    extend: 'Ext.window.Window',
    xtype: 'VideoComment-Edit',
    title: '编辑用户评价信息',
    layout: 'fit',
    autoShow: true,
    modal: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '10px',
                border: 0,
                items: [
                     {xtype: 'hiddenfield', name:'videoComment.uid', id: 'uid'}
                    ,{ xtype: 'hiddenfield', name:'videoComment.videoUid', id: 'videoUid'}
                    ,{ xtype: 'hiddenfield', name:'videoComment.userUid', id: 'userUid'}
					,{ xtype: 'displayfield', id:'videoName', fieldLabel: '视频'
					   
					}
					,{ xtype: 'displayfield', id: 'userName', fieldLabel: '评论人'
						
					}
					,{ xtype: 'numberfield', name:'videoComment.rateScore', id: 'rateScore', fieldLabel: '评分'}
					,{ 
						xtype: 'textareafield',
						name:'videoComment.description',
						id: 'description',
						minWidth:400,
						fieldLabel: '类别说明',
						emptyText:'请输入100字以内的类别说明',
						allowBlank:false
					 }
					
					,{
                	    xtype: 'radiogroup',
			            fieldLabel: '状态',
			            layout: 'hbox',
			            items: [
			                {
			                    boxLabel  : '无效',
			                    name      : 'videoComment.isValid',
			                    inputValue: 'N',
			                    id:'isValid'
			                }, {
			                    boxLabel  : '有效',
			                    name      : 'videoComment.isValid',
			                    inputValue: 'Y',
			                    checked:true
			                }
			            ]
	                   }
                ]
            }
        ];

        this.buttons = [
            {
                text: '确定',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
    }
});